package com.interview.thread.achieve;

public class RunnableTest02{
    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable();
        Thread thread = new Thread(myRunnable);
        thread.start();

        for(int i=0;i<100;i++){
            System.out.println("main"+i);
        }

    }
}

class MyRunnable implements  Runnable {
    @Override
    public void run() {
        for(int i =0 ;i<100;i++){
            System.out.println("MyRunnable"+i);
        }
    }
}
